function main() {
        Java.perform(function (){
            // mono_image_open_from_data_with_name
            var i = 1
            var addr_open = Module.findExportByName("libmono.so","mono_image_open_from_data_with_name")
            console.log(addr_open)
            Interceptor.attach(addr_open, {
                onEnter: function(args){
                    i ++
                    console.log("open onEnter");
                   // var name = Memory.readCString(ptr(args[5]))
                   // console.log(name)
                   // var data = Memory.readCString(ptr(args[0]))
                   // console.log(data)
                   var data = args[0]
                   var datalen = args[1].toInt32()
                   console.log(data)
                   console.log(datalen)

                   if(datalen > 0x4bcd70+0x20){
                   for(var i = 0x4bcd70 ;i<0x4bcd70+0x20;i++){
                    console.log( ptr(data+0x4bcd70) )
                   }
                   var file = new File('/sdcard/zzzz/test'+i+".dll", 'wb');
                   file.write(data.readByteArray(datalen));
                   file.flush();
                   file.close();

                }
        
    

                },
                onLeave: function(){
                    // console.log("open onLeave");
               
                }
            });
        })
    }
setImmediate( main );

// frida -U com.fcjflsdk.yx7477 -l jhxj.js
// frida -U com.yql.sanguo.nnwl -l u3ddum
// frida -U com.xingli.hall_yulewuqiong -l u3ddum

